import axios from '../utils/msbd-request';
import { msbdUrl } from '../api/baseUrl';

let getMsbdList = function (params) {
    return axios({
        url: msbdUrl + "list",
        method: "get",
        params
    })
}

let addMsbdList = function (data) {
    return axios({
        url: msbdUrl + "addList",
        method: "post",
        data
    })
}

let editMsbdList = function (data) {
    return axios({
        url: msbdUrl + "updateList",
        method: "post",
        data
    })
}

let deleteMsbdList = function (params) {
    return axios({
        url: msbdUrl + "delList",
        method: "get",
        params
    })
}

export {
    getMsbdList,
    addMsbdList,
    editMsbdList,
    deleteMsbdList
}